package com.zhigongtech.core.web.jwt;

import org.apache.shiro.authc.AuthenticationToken;

import lombok.AllArgsConstructor;

/**
 * 
 * @ClassName:  JwtToken   
 * @Description: for java-jwt
 * @author: Alan
 * @date:   2019-05-24 17:15:11
 *     
 */
@AllArgsConstructor
public class JwtToken implements AuthenticationToken {
	
	/**
	 * @Fields serialVersionUID : 
	 * @author: Alan
	 * @date:   2019-05-24 17:15:26
	 */
	private static final long serialVersionUID = 1L;
	
	private String token;
	
	@Override
	public Object getCredentials() {
		return token;
	}

	@Override
	public Object getPrincipal() {
		return token;
	}

}
